package insultGen.systemFiles;

public class Options {
	
	public static int race = 0;
	public static int gender = 0;
	public static boolean newInsultPending = false;
	public static boolean removePending = false;
	public static String pendingWord = "";
	public static String pendingFile = "";
	public static String pendingType = "gender";
	public static boolean isRacist = false;
	public static boolean isSexist = false;
	public static String sms = "";
	
	public static void setRace(int id){
		race = id;
	}
	
	public static void setGender(int id){
		gender = id;
	}
	
	public static int getRaceID(){
		if(race == 1){
			return R.id.black;
		}else if(race == 2){
			return R.id.mexican;
		}else if(race == 3){
			return R.id.asian;
		} else if(race == 4){
			return R.id.white;
		} else
			return R.id.none;
	}
	
	public static String getGender(){
		if(gender == 1){
			return "girl";
		} else
			return "boy";
	}
	
	public static String getRace(){
		if(race == 1){
			return "black";
		}else if(race == 2){
			return "mexican";
		}else if(race == 3){
			return "asian";
		} else if(race == 4){
			return "white";
		} else
			return "none";
	}
	
	public static void addPendingInsult(String insult, String file){
		newInsultPending = true;
		pendingWord = insult;
		pendingFile = file;
	}
	
	public static void addRemovePending(String insult){
		removePending = true;
		pendingWord = insult;
	}
	
	public static boolean isPending(){
		return newInsultPending;
	}
	
	public static boolean isRemovePending(){
		return removePending;
	}
	
	public static String getPendingInsult(){
		return pendingWord;
	}
	
	public static String getPendingFile(){
		return pendingFile;
	}
	
	public static void isAddPended(){
		newInsultPending = false;
	}
	
	public static void isRemovePended(){
		removePending = false;
	}
	
	public static void transferMessage(String text){
		sms = text;
	}
	
	public static String getMessage(){
		return sms;
	}
}
